package com.lazy.book.pojo.system.pojo.po;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.sz.mysql.EntityChangeListener;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
* 系统邮件日志
* </p>
*
* @author sz-admin
* @since 2025-07-02
*/
@Data
@Table(value = "sys_email", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "系统邮件日志")
public class SysEmail implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    @Schema(description ="")
    private Long id;

    @Schema(description ="")
    private Integer enterpriseId;

    @Schema(description ="邮件主题")
    private String emailTitle;

    @Schema(description ="邮件内容")
    private String emailContent;

    @Schema(description ="发件邮箱")
    private String fromEmail;

    @Schema(description ="收件邮箱")
    private String toEmail;

    @Schema(description ="邮件是否已经发送，1发送，0未发送 2出现错误")
    private Integer state;

    @Schema(description ="是否已读标志 1是未读 2是已读")
    private Integer status;

    @Schema(description ="")
    private String createBy;

    @Schema(description ="")
    private LocalDateTime createTime;

    @Schema(description ="")
    private String updateBy;

    @Schema(description ="")
    private LocalDateTime updateTime;

    @Schema(description ="发布时间")
    private LocalDateTime publishdate;

    @Schema(description ="发布给")
    private String publishby;

    @Schema(description ="可见")
    private String orgids;

    @Schema(description ="是否是企业信息 0 否 1是")
    private Integer isEnterprise;

    @Schema(description ="抄送邮箱")
    private String copyEmail;

}